package aclInfoCollector.utils.specialString;

import java.util.ArrayList;

/**La classe StringOperation permet de simplifier le regroupement d'informations pour une operation
*@version 1.0
*@author Bendavid Olivier
*@author Haderer Nicolas
*/


public class StringOperation 
{
	
	private String name;
	private StringParameter returnType;
	private ArrayList<StringParameter> paramsTypes;
	
	
	public StringOperation()
	{
		name="";
		returnType=new StringParameter();
		paramsTypes = new ArrayList<StringParameter>();
	}
	
	
	public void printOperation()
	{
		
		System.out.println(name);
		System.out.println("parameters");
		for(StringParameter s:paramsTypes)
		{s.printParameter();}
		System.out.println("return Type : "+returnType.getType());
		
		
		
	}
	
	


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public StringParameter getReturnType() {
		return returnType;
	}


	public void setReturnType(StringParameter returnType) {
		this.returnType = returnType;
	}


	public ArrayList<StringParameter> getParamsTypes() {
		return paramsTypes;
	}


	public void setParamsTypes(ArrayList<StringParameter> paramsTypes) {
		this.paramsTypes = paramsTypes;
	}

}
